<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>网站设置</title>
	<hdjs />
	<js file= '__PUBLIC__/js/mod.base.js' />
	<css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
<div class="hd-menu-list">
	<ul>
		<li class="active">
			<a href="javascript:;">网站配置</a>
		</li>
		<li>
			<a href="{:U('Config/add')}">添加配置</a>
		</li>
		<li>
			<a href="{:U('Config/update_cache')}">更新缓存</a>
		</li>
	</ul>
</div>

<div class="hd-title-header">温馨提示</div>
<div class="help">
	<ul>
		<li>模板中使用配置项方法为{ $Think.config.变量名}，请仔细修改配置项，不当设置将影响网站的性能与安全</li>
	</ul>
</div>
<form class="hd-form" action='' method="post" enctype='multipart/form-data'>

	<div class="hd-tab">
		<ul class="hd-tab-menu">
			<foreach name="data" item='v' >
				<li lab='{$key}' <if condition="$key eq '基本设置'">class='active'</if>
				>
				<a href="#">{$key}</a>
			</li>

		</foreach>

	</ul>
	<div class="hd-tab-content">
		<foreach name="data"  item='v'>
			<div lab="{$key}" class="hd-tab-area">
				<table class='hd-table hd-table-form hd-form'>
					<thead>
						<tr style="background: #E6E6E6;">
							<td class='hd-w30'>排序</td>
							<td class="hd-w200">标题</td>
							<td>配置</td>
							<td class="hd-w500">变量</td>

						</tr>
					</thead>
					<tbody>
						<foreach name="v" item='value'>
							<tr>
								<td><input type="text" name="sort[{$value.code}]" value="{$value.sort}" class='hd-w30'/></td>
								<td >{$value.title}</td>
								<td align="left">{$value.form}</td>
								<td align="left">{$value.code}</td>
							</tr>
						</foreach>
					</tbody>
				</table>
			</div>
		</foreach>
	</div>
</div>
<input type="submit" class="hd-btn hd-btn-xm" value="确定"></form>

</body>
</html>